#pragma once
#include"preCmpH.h"
#include"UIFont.h"

BEGIN_NAMESPACE(ui_manager)
BEGIN_NAMESPACE(ui_fonts)

class UIFontChar;
typedef std::shared_ptr<UIFontChar> UIFontCharPtr; //

class UIFontChar
{
public:
	UIFontChar();
	UIFontChar(const UIFontChar& f_char);
	UIFontChar& operator= (const UIFontChar& f_char);
	~UIFontChar();
	void SetPosX(int x){pos_.setX(x);}
	void SetPosY(int y){pos_.setY(y);}
	void SetWidth(int w){size_.setWidth(w);}
	void SetHeight(int h){size_.setHeight(h);}
	void SetBuffer(unsigned char* b){buffer_ = b;}

	int GetPosX()const{return pos_.getX();}
	int GetPosY()const{return pos_.getY();}
	UIPoint GetPos()const{return pos_;}
	int GetWidth()const{return size_.getWidth();}
	int GetHeight()const{return size_.getHeight();}
	UISize GetSize()const{return size_;}
	unsigned char* GetBuffer()const{return buffer_;}

private:
	UIPoint pos_;
	UISize size_;
	unsigned char* buffer_;
};

END_NAMESPACE // ui fonts
END_NAMESPACE // ui manager